set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH "/home/licks/Qt5.15/5.15.2/gcc_64/lib/cmake")
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)

add_executable(camera main.cpp camera.h camera.cpp camera.ui)
target_link_directories(camera PRIVATE ${PROJECT_SOURCE_DIR}/v4l2_video)
target_link_libraries(camera PRIVATE Qt${QT_VERSION_MAJOR}::Widgets v4l2_video)
